package com.itheima.device.service.impl;


import com.itheima.device.dao.DeviceInfoMapper;
import com.itheima.device.pojo.Device;
import com.itheima.device.pojo.DeviceInfo;
import com.itheima.device.service.DeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeviceInfoServiceImpl implements DeviceInfoService {

    @Autowired
    private DeviceInfoMapper deviceInfoMapper;




    @Override
    public DeviceInfo findDeviceInFoById(Integer did) {
        return (DeviceInfo) deviceInfoMapper.findDeviceInfoByDid(did);
    }

    /**
     * 修改设备使用说明
     * @param deviceInfo
     */
    @Override
    public void updateDeviceInfo(DeviceInfo deviceInfo) {
        deviceInfoMapper.updateByPrimaryKey(deviceInfo);

    }



}
